<?php
/**
 * model-系统设置
 *
 * @author liwei
[ranknow bbs!] (C)2009-2015 ranknow.cn.
This is NOT a freeware, use is subject to license terms
 * @rcsfile $RCSfile: mdl_settings.php,v $
 * @revision $Revision: 0.1 $
 * @date $Date: 2009/12/29 03:40:17 $
 */
function update_setting( $data = array() ) {
    $sql = '';
    if ( !is_array( $data ) || count( $data ) == 0 ) {
        return false;
    } else {
        foreach($data as $key => $item){
          $sql = "REPLACE INTO bbs_settings (variable, value) VALUES ('$key', '$item')";
          dbExecute($sql);
       }
      return true;
    }
}

?>